package com.example.dto;

import com.example.validator.group.AddGroup;
import com.example.validator.group.UpdateGroup;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import lombok.Data;

import java.util.Date;

/**
 * 图片列表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 1.0-SNAPSHOT 2025-04-29
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(description = "图片列表")
public class ImagesDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "图片id")
    private Long imageId;
    @Schema(description = "名称")
    private String name;
    @Schema(description = "描述")
    private String description;
    @Schema(description = "大小")
    private Integer size;
    @Schema(description = "图片类型")
    private String imageType;
    @Schema(description = "归属类型")
    private Integer imageBelong;
    @Schema(description = "归属id")
    private Long belongId;
    @Schema(description = "更新时间")
    private Date updateDate;
    @Schema(description = "是否启用：1，启用：0：禁用")
    private Integer isActive;
    @Schema(description = "url路径")
    private String url;
    @Schema(description = "是否推荐")
    private Integer isRecommend;

}